package oop.Demo10;

public class Outer {
    private int id = 10;
    public void out(){

    }
    public class Inner{

        public void in(){
            System.out.println("这是一个内部类的方法");
        }
        public void getId(){
            System.out.println(id);
        }
    }
    //局部内部类
    public class Method {
        class Inner{
            public void in(){

            }

        }
    }
}
